scoreboard players add #VSIBAARayTimer temp 1

#result
execute if entity @n[distance=..0.36,type=item_display,tag=IBAARay] run return run function vs:system/game_ctrol/void_shop/is_being_aimed_at/ray_suc
execute if score #VSIBAARayTimer temp matches 10.. run return run function vs:system/game_ctrol/void_shop/is_being_aimed_at/ray_fail
execute if entity @n[distance=..0.36,tag=!IBAARay] run return run function vs:system/game_ctrol/void_shop/is_being_aimed_at/ray_fail

#loop
execute positioned ^ ^ ^0.5 run function vs:system/game_ctrol/void_shop/is_being_aimed_at/ray